﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TV_2013.Handle
{
    class ChooseFile
    {
        private string fileName;
        private Random rd;
        private int choose;

        public ChooseFile()
        {
            fileName = "";
            choose = 0;
            rd = new Random();
        }

        public string getGoodFile()
        {
            //random 1 2 3
            choose = rd.Next(1, 3);
            switch (choose)
            {
                case 1:
                    fileName = "/Sound/gioiqua.wma";
                    break;
                case 2:
                    fileName = "/Sound/hoanho.wma";
                    break;
                case 3:
                    fileName = "/Sound/tuyetvoi.wma";
                    break;
            }

            return fileName;
        }

        public string getBadFile()
        {
            //random 1 2 3
            choose = rd.Next(1, 4);
            switch (choose)
            {
                case 1:
                    fileName = "/Sound/sairoi.wma";
                    break;
                case 2:
                    fileName = "/Sound/colen.wma";
                    break;
                case 3:
                    fileName = "/Sound/thulai.wma";
                    break;
            }

            return fileName;
        }
    }
}
